package br.com.cartools.entity.customer;

public class Contact {

	private Integer id;
	private String companyTelephone;
	private String celphone;
	private String site;
	private String email;
	
	public Contact(){
		
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getCompanyTelephone() {
		return companyTelephone;
	}
	public void setCompanyTelephone(String companyTelephone) {
		this.companyTelephone = companyTelephone;
	}
	public String getCelphone() {
		return celphone;
	}
	public void setCelphone(String celphone) {
		this.celphone = celphone;
	}
	public String getSite() {
		return site;
	}
	public void setSite(String site) {
		this.site = site;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((celphone == null) ? 0 : celphone.hashCode());
		result = prime
				* result
				+ ((companyTelephone == null) ? 0 : companyTelephone.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((site == null) ? 0 : site.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Contact other = (Contact) obj;
		if (celphone == null) {
			if (other.celphone != null)
				return false;
		} else if (!celphone.equals(other.celphone))
			return false;
		if (companyTelephone == null) {
			if (other.companyTelephone != null)
				return false;
		} else if (!companyTelephone.equals(other.companyTelephone))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (site == null) {
			if (other.site != null)
				return false;
		} else if (!site.equals(other.site))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Contact [id=" + id + ", companyTelephone=" + companyTelephone
				+ ", celphone=" + celphone + ", site=" + site + ", email="
				+ email + "]";
	}
}
